<?php
namespace app\api\validate;

use think\Validate;

class FinValidate extends Validate{
    protected $rule =   [
        'id'                        => 'require|integer',
        'order_id|订单ID'           => 'require|integer',
        'user_id|用户ID'            => 'require|integer',
        'admin_id|店铺ID'           => 'require|integer',
        'curr|页数'                 => 'require|integer',
        'limit|条数'                => 'require|integer',
    ];
    
    protected $scene = [
        'money_list'     => ['user_id', 'admin_id', 'curr', 'limit'],
        'money_data'     => ['user_id', 'admin_id'],
    ];
}